package com.shooker.factory.simplefactory;

import com.shooker.factory.simplefactory.service.AbstractClassD;
import com.shooker.factory.simplefactory.service.CreateClassBObject;
import com.shooker.factory.simplefactory.service.CreateClassCObject;
import com.shooker.factory.simplefactory.service.Interface;

public class SimpleFactoryApplication {

    public static void main(String[] args){
        AbstractClassD abstractClassD = new CreateClassBObject();
        Interface interfaceA = abstractClassD.getObject();
        interfaceA.createString();

        AbstractClassD classD = new CreateClassCObject();
        classD.getObject().createString();
    }

}
